<!DOCTYPE html>

<html>
<head>
	<title>AIL-Framework</title>
	<link rel="icon" href="{{ url_for('static', filename='image/ail-icon.png')}}">
	<!-- Core CSS -->
	<link href="{{ url_for('static', filename='css/bootstrap4.min.css') }}" rel="stylesheet">
	<link href="{{ url_for('static', filename='css/font-awesome.min.css') }}" rel="stylesheet">

	<!-- JS -->
	<script src="{{ url_for('static', filename='js/jquery.js')}}"></script>
	<script src="{{ url_for('static', filename='js/bootstrap4.min.js')}}"></script>


</head>

<body>

	{% include 'nav_bar.html' %}

	<div class="container-fluid">
		<div class="row">

			{% include 'crawler/menu_sidebar.html' %}

			<div class="col-12 col-lg-10" id="core_content">

                <div class="card my-2">
                    <div class="card-header bg-dark text-white">
                        <h3 class="card-title"> Lacus Config:</h3>
                        <form action="{{ url_for('crawler_splash.crawler_lacus_settings_crawler_manager') }}" method="post" enctype="multipart/form-data">
                          <div class="form-group">
                            <label for="splash_manager_url">Lacus Server URL</label>
                            <input type="text" class="form-control" id="splash_manager_url" required placeholder="https://lacus_url" name="lacus_url" {%if lacus_url%}value="{{lacus_url}}"{%endif%}>
                          </div>
{#                          <div class="form-group">#}
{#                            <label for="api_key">API Key</label>#}
{#                            <input type="text" class="form-control" id="api_key" placeholder="API Key" name="api_key" {%if api_key%}value="{{api_key}}"{%endif%}>#}
{#                          </div>#}
                          <button type="submit" class="btn btn-primary">Edit Lacus <i class="fas fa-pencil-alt"></i></button>
                        </form>
                    </div>
                </div>


			</div>
		</div>
	</div>


</body>

<script>
var to_refresh = false
$(document).ready(function(){
	$("#page-Crawler").addClass("active");
	$("#nav_settings").addClass("active");
});

</script>
